﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DataCenter.Model.Model;

namespace DataCenter.Model.Interface
{
    public interface IShopInfoProvider
    {
        List<ShopInf> SearchShopInf(out int totalRecord, DateTime? fromDate = null, DateTime? toDate = null,
            string shopCode = null, string shopName = null, string address = null, string billToCode = null, string regionId = null,
            string cellNo1 = null, string distCode = null, string provinceCode = null, string customerCode = null, string ownerName = null,
            string ownerEmail = null, string areaCode = null, string shopType = null, bool? active = null, int pagesize = 0, int pageindex = 0, bool? includeArea = null);

        List<ShopInf> SearchShopInf(out int totalRecord, string textSearch, int pagesize = 0, int pageindex = 0, bool? includeArea = null);

        bool Update(ShopInf shop);

        bool Add(ShopInf shop);

        bool Delete(string shopcode);

        ShopInf RetrieveShopInf(string shopcode);
    }
}
